package cfdt.ldl.risk.controller;

import cfdt.common.vo.ObjectBaseResponse;
import cfdt.ldl.risk.api.request.CheckBlacklistRiskRequest;
import cfdt.ldl.risk.service.RiskService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * 黑名单检查-Controller
 *
 * <pre>
 * Modify Information:
 * Author       Date          Description
 * ============ ============= ============================
 * wangxiao      2021年8月16日下午1:53:49      创建Controller类
 *
 * </pre>
 */
@RestController
@RequestMapping("/risk")
public class RiskController {

    protected final Logger logger = LoggerFactory.getLogger(getClass().getName());

    @Autowired
    RiskService riskService;


    @GetMapping("/checkblacklist")
    public ObjectBaseResponse checkBlackList(@RequestBody CheckBlacklistRiskRequest request) {
        logger.info("黑名单检查 开始");
        return riskService.checkBlackList(request);
    }

}
